# # 下列两个元组
# Tup1 = (1,2,3)
# Tup2 = (2,3,4)
# # 1)获取两个元组的相同元素
# print(set(Tup1) & set(Tup2))
# # 2)获取两个元组的不同元素
# print(set(Tup1) - set(Tup2))
# # 3)获取两个元组总共有哪些元组
# print(set(Tup1) | set(Tup2))

" ""字符串""  "
# 统计字符串中,数字,字母,空格,其他符号的数量'
# str1=input()
# s=z=k=q=0
# for i in str1:
#     if i.isdigit():
#         s+=1
#     elif i.isalpha():
#         z+=1
#     elif i==" ":
#         k+=1
#     else:
#         q+=1
# print("数字%s个,字母%s个,空格%s个,其他符号%s个"%(s,z,k,q))




" ""字典""  "
# 定义空字典,向其中添加5组数据(键为组名,值为组员名称的列表),组名不能重复,如果重复给出提示
# dict1={}
# for i in range(100):
#     a = input("请输入组名")
#     b = input("请输入名称")
#     if a not in dict1:
#         dict1[a]=b
#     else:
#         print("组名重复")
#     if len(dict1)==5:
#         break
# print(dict1)




"   ""列表""  "
# 定义列表a=["2","3","5","A","4","A"],将列表去重输出
# a=["2","3","5","A","4","A"]
# b=[]
# for i in a:
#     if i not in b:
#         b.append(i)
# print(b)
#
# b=set(a)
# c=list(b)
# print(c)

# 6.列表操作1:定义列表,向其中添加10个不同的输入的整数,删除列表第一项,修改列表最后一项为88,将列表升序排序,查询列表中有几个偶数
# list1=[]
# while 1:
#     num=int(input("请输入整数："))
#     if num not in list1:
#         list1.append(num)
#     if len(list1)==10:
#         break
# print(list1)
# list1.pop(0)
# print(list1)
# list1[-1]=88
# print(list1)
# o=1
# for i in list1:
#     if i % 2 ==0:
#         o+=1
# print(o)
#



